package com.guchenbo.example.thread.singleton;

/**
 * @Author guchenbo
 * @Date 2019/7/5.
 */
public class SingletonHolderFactory {

    private static class SingletonHolder {
        private static Singleton singleton = new Singleton();
    }

    public static Singleton getInstance() {
        return SingletonHolder.singleton;
    }
}
